#include "text-img.hh"

TextImg::TextImg (const std::string& text, const Vector2f& pos):
  text_ (text),
  pos_ (pos)
{
}

void
TextImg::dispatch () const
{
  glRasterPos2i (pos_ (0), pos_ (1));

  const char* str = text_.c_str ();

  for (unsigned i = 0; i < text_.size (); ++i)
    glutBitmapCharacter (GLUT_BITMAP_HELVETICA_18, str[i]);
}
